//
//  XHRMedicalMessageButton.m
//  快医
//
//  Created by 胥鸿儒 on 16/7/6.
//
//

#import "XHRMedicalMessageButton.h"

@implementation XHRMedicalMessageButton

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.enabled = NO;
        [self setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
   
   [self.imageView makeConstraints:^(MASConstraintMaker *make) {
       make.leading.offset(0);
       make.height.equalTo(16);
       make.width.equalTo(14);
       make.centerY.equalTo(self);
   }];
    [self.titleLabel makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
    }];
     self.titleLabel.xhr_X = CGRectGetMaxX(self.imageView.frame) + 15;
}

@end
